<#-- @ftlvariable name="topicPage" type="com.jfinal.plugin.activerecord.Page<model.Topic>" -->
<@override name="content">
<div class="sixteen wide column" id="main-content" style="margin-left: 200px;margin-right: 200px;">
    <div class="ui basic vertical segment">
        <table border="1" cellspacing="0" class="ui fixed table">
            <thead>
            <tr>
                <th class="twelve wide">标题</th>
                <th>作者</th>
                <th>发布时间</th>
            </tr>
            </thead>
            <tbody>
                <#list topicPage.getList() as topic>
                <tr>
                    <td><a href="/topic/${topic.id!''}">${topic.title!''}</a></td>
                    <td>${topic.nickname!''}</td>
                    <td>${topic.pubDate!''}</td>
                </tr>
                </#list>
            </tbody>
        </table>
        <div>
        <#if topicPage.getPageNumber() !=1 >
            <a href="?page=${topicPage.getPageNumber()-1}">上一页</a>
        </#if>
    ${topicPage.getPageNumber()}/${topicPage.getTotalPage()}
        <#if topicPage.getPageNumber()!=topicPage.getTotalPage()>
            <a href="?page=${topicPage.getPageNumber()+1}">下一页</a>
        </#if>
        </div>
    </div>
</div>
</@override>
<@extends name="../parent1.ftl"></@extends>